﻿@{
    Layout = null;
    var not_id = this.Context.Request.Query.GetInteger("NOT_ID");
}

<form>
    <table class="form_table">
        <tr><td colspan="4">&nbsp;</td></tr>
        <tr>
            <td align="right">上级部门：</td>
            <td>
                <input name="Id" style="display:none" value="" />
                <input id="ParentID" name="ParentID" class="easyui-combotree" style="width:300px"
                       data-options="url:'~/Departments/GetDepartmentFullTree?NOT_ID=@not_id',method:'get',editable:false,valueField:'Id',textField:'FullName',required:true" />
            </td>
            <td align="right">部门类型：</td>
            <td>
                <input name="DepartmentType" class="easyui-combobox" style="width:300px"
                       data-options="url:'~/Systems/GetAppDictionary/DEPARTMENT_TYPE',method:'get',editable:false,valueField:'DictionaryID',textField:'Name'" />

            </td>
        </tr>
        <tr>
            <td width="160" align="right">部门名称：</td>
            <td>
                <input name="FullName" class="easyui-textbox" style="width:300px;" data-options="required:true" />
            </td>
            <td align="right">部门简称：</td>
            <td>
                <input name="ShortName" class="easyui-textbox" style="width:300px;" />
            </td>
        </tr>
        <tr>
            <td align="right">部门编号：</td>
            <td>
                <input name="Code" class="easyui-textbox" style="width:300px;" />
            </td>
            <td align="right">联系地址：</td>
            <td>
                <input name="Address" class="easyui-textbox" style="width:300px;" />
            </td>
        </tr>
        <tr>
            <td align="right">联系电话：</td>
            <td>
                <input name="PhoneNumber" class="easyui-textbox" style="width:300px;" />
            </td>
            <td align="right">邮件地址：</td>
            <td>
                <input name="Email" class="easyui-textbox" style="width:300px;" />
            </td>
        </tr>
        <tr>
            <td align="right">邮编：</td>
            <td>
                <input name="PostCode" class="easyui-textbox" style="width:300px;" />
            </td>
            <td align="right">
                经度：
            </td>
            <td>
                <input name="Longitude" class="easyui-numberbox" style="width:100px;" data-options="min:0,precision:4,value:'0'" />
                <span style="margin-left:50px;">维度：</span>
                <input name="Latitude" class="easyui-numberbox" style="width:100px;" data-options="min:0,precision:4,value:'0'" />
            </td>
        </tr>
        <tr>
            <td align="right">
                状态：
            </td>
            <td colspan="3">
                <input id="Enable" name="Enable" class="easyui-switchbutton" checked data-options="onText:'启用',offText:'停用'" style="width:100px;height:25px;" />
            </td>
        </tr>
        <tr>
            <td align="right">
                职责说明：
            </td>
            <td colspan="3">
                <input name="Comment" class="easyui-textbox" style="width:730px;height:130px" data-options="multiline:true" />
            </td>
        </tr>

    </table>
</form>
